package com.panopset.sf;

import java.awt.Rectangle;

/**
 * Define hot link area.
 * @author Karl Dinwiddie
 */
public final class Link {

    /**
     * Area.
     */
    private final Rectangle area;

    /**
     * URL as String.
     */
    private final String url;

    /**
     * @return URL as String.
     */
    public String getUrl() {
        return url;
    }

    /**
     * @return Area.
     */
    public Rectangle getArea() {
        return area;
    }

    /**
     * @param hotArea Hot area.
     * @param urlString URL as String.
     */
    public Link(final Rectangle hotArea, final String urlString) {
        area = hotArea;
        url = urlString;
    }
}
